home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / smspinbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  2007-08-23  |  789 b   |  42 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. #ifndef SMSPINBOX_H
  8. #define SMSPINBOX_H
  9.  
  10. #include <QSpinBox>
  11.  
  12. class SMSpinBox : public QSpinBox
  13. {
  14.     Q_OBJECT
  15. public:
  16.     SMSpinBox(QWidget *parent);
  17.     ~SMSpinBox() {};
  18.  
  19.     void setValue(int val);
  20.     void setValue(int val, bool isParentVal);
  21.  
  22.     void clear();
  23.  
  24.     void setParentValue(int val);
  25.  
  26.     bool useParentValue();
  27.  
  28. protected:
  29.     void interpretText();
  30.  
  31. private:
  32.     bool   hasParent_;
  33.     bool   useParentValue_;
  34.     int    pValue_;
  35.     void setFont(bool wantBold);
  36.  
  37. private slots:
  38.     void slotValueChanged();
  39. };
  40.  
  41. #endif
  42.